<html>
    <head>
        <title> Offline Review </title>
        <link href="style3.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
    <h1><b><u><font size ="8"><center> Paper Review </h1></u></font></center>
    <div align="left">
                <?php

                    $conf_id = $_GET['conference_id'];
                    $paper = $_GET['paper_id'];
                    ?>
    <form  method ="post" action ="insert.php?conference_id=<?php echo $conf_id?>&paper_id=<?php echo $paper?>">
        <textarea style="width: 100%" rows="7" cols="40" name="comments" ></textarea> <br />
    <input type="submit" name="submit"/>
    </div>
    <select name="rate" id="rate" method="post" >
    <option value="">Rating criteria</option>

                    <?php
                    //<input type ="text" name ="comments" value="" style="width:20%;" method ="get">
                    //<input type="submit" name="submit" method="get" value="Submit" action ="insert.php"/>
                    // Opens connection with the database
                    $conn = mysql_connect("localhost", "root", "") or die(mysql_error());
                    mysql_select_db("mydb", $conn) or die(mysql_error());

                    include "statics.php";
                    // Selecting all the rating criteria to appear in the drop down list
                    $all_criteria = rsSelect("Rate_id", "conference_rating_criteria", array("conference_id=", $conf_id));
                    if (!is_string($all_criteria)) {
                        $Rating_Criteria = "";
                        while ($row = mysql_fetch_assoc($all_criteria)) {
                            $rsCriteriaName = rsSelect("criteria_type", "rating_criteria", array('rate_id=', $row['Rate_id']));
                            if (!is_string($rsCriteriaName)) {
                                $rowCriteriaName = mysql_fetch_assoc($rsCriteriaName);
                                $Rating_Criteria .= "<option value={$row['Rate_id']}>{$rowCriteriaName['criteria_type']}</option>";
                            }
                            else
                                echo $rsCriteriaName;
                        }
                        echo $Rating_Criteria;
                    }
                    else
                        echo $all_criteria;



                    ?>
                    <p>
                        </br>
                        <input type="radio" name="type" value="1"/>1
                        <input type="radio" name="type" value="2"/> 2
                        <input type="radio" name="type" value="3"/> 3
                        <input type="radio" name="type" value="4"  /> 4
                        <input type="radio" name="type" value="5"/> 5<br />
                        <input type ="submit" name ="done" method="get" value ="Done" action ="insert.php"/>
                    </p>



                    <body>
                        </form>



